﻿@using Demo.Model;
@using Pampa.MVC.Helpers;
@using Pampa.MVC.Models;
@using Pampa.MVC.Fluent.Crud;
@using Pampa.MVC.Fluent.Common;
@using Pampa.GenericEntity;

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/Layout.cshtml";

    GenericEntity contentItem = ViewBag.ContentItem;
    string contentItemType = ViewBag.ContentItemType; 
}

<h2>Edit</h2>

<div style="width: 1000px">

    @(Html.Pampa().EntityEditor(contentItem)
                  .ClientId("GenericEdit")
                  .IncludeSaveButton()
                  .OnClientSuccess("alert('Saved!')")
                  .Config(contentItemType))

</div>
